<?php
    ####################################################
    # library import and object instance.              #
    ####################################################
    include_once('./common.php');
    include_once('./app_common.php');


    ####################################################
    # request data($_POST AND $_GET FROM $_REQUEST)    #
    ####################################################
    # REQUEST(get and post variables)
    $req = Request::clean_request($_REQUEST, FALSE);

    # GET(url variables)

    # POST(form variables)

    # Validation(special case validate)
    //*/
    #@@todo : php server validation
    Validation::check_isnt_key_val($req, 'fuid');
    Validation::check_is_emptys($req);
    //*/

    ####################################################
    # implementation                                   #
    ####################################################

?>
<?php
    $html->custom_header(TITLE);
    $html->custom_js("{$JS}jquery.1.7.1.min.js");
    $html->custom_js("{$JS}lib.control.js");
    $html->custom_css("{$CSS}basic.css");
?>
<?$html->custom_body();?>
<?=$tmp->tiles_header()?>
<h1>app - delete</h1>
<form action="./app_delete_proc.php" id="formx" name="formx" method="post" onsubmit="return PageAction.validate();">
        <table width="100%" border="1" cellspacing="0" cellpadding="3" style="border-collapse:collapse">
            <tr>
                <td>
                    <input type='hidden' name='fuid' id='fuid' value='<?=$req[fuid]?>' />
                    I will put my decision in action soon that delete <strong>fuid</strong> column has value to <strong><?=$req[fuid]?></strong>
                    if you want click to confirm button
                </td>
            </tr>
            <tr>
                <th>
                    <?=NTool::submit_btn();?>
                </th>
            </tr>
        </table>
</form>
    <?=NTool::btn("retrieve", "Mover.href('./app_retrieve.php?fuid={$req['fuid']}');")?>
    <?=NTool::btn("update", "Mover.href('./app_update.php?fuid={$req['fuid']}');")?>
    <?=NTool::btn("list", "Mover.href('./app_list.php');");?>
    <span> | </span>
    <?=NTool::btn("back", "Mover.back();");?>
    <?=NTool::btn("index", "Mover.home();");?>
<?=$tmp->tiles_footer()?>
<?php $html->html_footer(); ?>

